package com.ourteam.education.dao;
/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2019-09-22 15:15:05
  * Warning ! This file will be overwrite when regenerate !
  * 
 */
import org.apache.commons.lang.StringUtils;
public class Teacher implements java.io.Serializable {
    
    public Teacher() {
		super();
	}
	
		
		
		
		
		
	private long id;	
	
	/**
	 * Attribute id Be Seted Falg
	 */
	private boolean idSetted = false;
	
		/**
	 * Attribute id is Null Falg
	 */
	private boolean idNull = false;
	
	   
    /**
	 * Get id
	 * 
	 * @return long
	 */
	final public long getId(){
	    
				
		return id;
				
	}
	
	/**
	 * Set id
	 * 
	 * @param long
	 */
	final public void setId(long id ){
		
				
		this.id = id;
				
		this.idSetted = true;
		
				
				
		this.setIdNull(false);
				
				
	}
	
	/**
	 * Get id Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isIdSetted(){
		return this.idSetted;
	}
	
		
	/**
	 * Set id Null
	 * 
	 */
	final public void setIdNull(){
			
		this.idNull = true;
		
	}	
	
	final public void setIdNull(boolean aNullFlag){
			
		this.idNull = aNullFlag;
		
	}	
	
	final public boolean isIdNull(){
			
		return this.idNull;
		
	}
	
    	
	   
		
		
		
	private String teacherName;	
	
	/**
	 * Attribute teacherName Be Seted Falg
	 */
	private boolean teacherNameSetted = false;
	
		/**
	 * Attribute teacherName is Null Falg
	 */
	private boolean teacherNameNull = false;
	
	   
    /**
	 * Get teacherName
	 * 
	 * @return String
	 */
	final public String getTeacherName(){
	    
				
		if(isTeacherNameNull()){
			return null;
		}
		else{
			return StringUtils.trim(teacherName);
		}
				
	}
	
	/**
	 * Set teacherName
	 * 
	 * @param String
	 */
	final public void setTeacherName(String teacherName ){
		
				
		this.teacherName = StringUtils.trim(teacherName);
				
		this.teacherNameSetted = true;
		
				
				
		this.setTeacherNameNull(this.teacherName == null);
				
				
	}
	
	/**
	 * Get teacherName Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isTeacherNameSetted(){
		return this.teacherNameSetted;
	}
	
		
	/**
	 * Set teacherName Null
	 * 
	 */
	final public void setTeacherNameNull(){
			
		this.teacherNameNull = true;
		
	}	
	
	final public void setTeacherNameNull(boolean aNullFlag){
			
		this.teacherNameNull = aNullFlag;
		
	}	
	
	final public boolean isTeacherNameNull(){
			
		return this.teacherNameNull;
		
	}
	
    	
	   
		
		
		
	private String teacherGender;	
	
	/**
	 * Attribute teacherGender Be Seted Falg
	 */
	private boolean teacherGenderSetted = false;
	
		/**
	 * Attribute teacherGender is Null Falg
	 */
	private boolean teacherGenderNull = false;
	
	   
    /**
	 * Get teacherGender
	 * 
	 * @return String
	 */
	final public String getTeacherGender(){
	    
				
		if(isTeacherGenderNull()){
			return null;
		}
		else{
			return StringUtils.trim(teacherGender);
		}
				
	}
	
	/**
	 * Set teacherGender
	 * 
	 * @param String
	 */
	final public void setTeacherGender(String teacherGender ){
		
				
		this.teacherGender = StringUtils.trim(teacherGender);
				
		this.teacherGenderSetted = true;
		
				
				
		this.setTeacherGenderNull(this.teacherGender == null);
				
				
	}
	
	/**
	 * Get teacherGender Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isTeacherGenderSetted(){
		return this.teacherGenderSetted;
	}
	
		
	/**
	 * Set teacherGender Null
	 * 
	 */
	final public void setTeacherGenderNull(){
			
		this.teacherGenderNull = true;
		
	}	
	
	final public void setTeacherGenderNull(boolean aNullFlag){
			
		this.teacherGenderNull = aNullFlag;
		
	}	
	
	final public boolean isTeacherGenderNull(){
			
		return this.teacherGenderNull;
		
	}
	
    	
	   
		
		
		
	private java.util.Date teacherBirthday;	
	
	/**
	 * Attribute teacherBirthday Be Seted Falg
	 */
	private boolean teacherBirthdaySetted = false;
	
		/**
	 * Attribute teacherBirthday is Null Falg
	 */
	private boolean teacherBirthdayNull = false;
	
	   
    /**
	 * Get teacherBirthday
	 * 
	 * @return java.util.Date
	 */
	final public java.util.Date getTeacherBirthday(){
	    
				
		return teacherBirthday;
				
	}
	
	/**
	 * Set teacherBirthday
	 * 
	 * @param java.util.Date
	 */
	final public void setTeacherBirthday(java.util.Date teacherBirthday ){
		
				
		this.teacherBirthday = teacherBirthday;
				
		this.teacherBirthdaySetted = true;
		
				
				
		this.setTeacherBirthdayNull(this.teacherBirthday == null);
				
				
	}
	
	/**
	 * Get teacherBirthday Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isTeacherBirthdaySetted(){
		return this.teacherBirthdaySetted;
	}
	
		
	/**
	 * Set teacherBirthday Null
	 * 
	 */
	final public void setTeacherBirthdayNull(){
			
		this.teacherBirthdayNull = true;
		
	}	
	
	final public void setTeacherBirthdayNull(boolean aNullFlag){
			
		this.teacherBirthdayNull = aNullFlag;
		
	}	
	
	final public boolean isTeacherBirthdayNull(){
			
		return this.teacherBirthdayNull;
		
	}
	
    	
	   
		
		
		
	private String contactPhone;	
	
	/**
	 * Attribute contactPhone Be Seted Falg
	 */
	private boolean contactPhoneSetted = false;
	
		/**
	 * Attribute contactPhone is Null Falg
	 */
	private boolean contactPhoneNull = false;
	
	   
    /**
	 * Get contactPhone
	 * 
	 * @return String
	 */
	final public String getContactPhone(){
	    
				
		if(isContactPhoneNull()){
			return null;
		}
		else{
			return StringUtils.trim(contactPhone);
		}
				
	}
	
	/**
	 * Set contactPhone
	 * 
	 * @param String
	 */
	final public void setContactPhone(String contactPhone ){
		
				
		this.contactPhone = StringUtils.trim(contactPhone);
				
		this.contactPhoneSetted = true;
		
				
				
		this.setContactPhoneNull(this.contactPhone == null);
				
				
	}
	
	/**
	 * Get contactPhone Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isContactPhoneSetted(){
		return this.contactPhoneSetted;
	}
	
		
	/**
	 * Set contactPhone Null
	 * 
	 */
	final public void setContactPhoneNull(){
			
		this.contactPhoneNull = true;
		
	}	
	
	final public void setContactPhoneNull(boolean aNullFlag){
			
		this.contactPhoneNull = aNullFlag;
		
	}	
	
	final public boolean isContactPhoneNull(){
			
		return this.contactPhoneNull;
		
	}
	
    	
	   
		
		
		
	private String contactsRelation;	
	
	/**
	 * Attribute contactsRelation Be Seted Falg
	 */
	private boolean contactsRelationSetted = false;
	
		/**
	 * Attribute contactsRelation is Null Falg
	 */
	private boolean contactsRelationNull = false;
	
	   
    /**
	 * Get contactsRelation
	 * 
	 * @return String
	 */
	final public String getContactsRelation(){
	    
				
		if(isContactsRelationNull()){
			return null;
		}
		else{
			return StringUtils.trim(contactsRelation);
		}
				
	}
	
	/**
	 * Set contactsRelation
	 * 
	 * @param String
	 */
	final public void setContactsRelation(String contactsRelation ){
		
				
		this.contactsRelation = StringUtils.trim(contactsRelation);
				
		this.contactsRelationSetted = true;
		
				
				
		this.setContactsRelationNull(this.contactsRelation == null);
				
				
	}
	
	/**
	 * Get contactsRelation Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isContactsRelationSetted(){
		return this.contactsRelationSetted;
	}
	
		
	/**
	 * Set contactsRelation Null
	 * 
	 */
	final public void setContactsRelationNull(){
			
		this.contactsRelationNull = true;
		
	}	
	
	final public void setContactsRelationNull(boolean aNullFlag){
			
		this.contactsRelationNull = aNullFlag;
		
	}	
	
	final public boolean isContactsRelationNull(){
			
		return this.contactsRelationNull;
		
	}
	
    	
	   
		
		
		
	private String idCardType;	
	
	/**
	 * Attribute idCardType Be Seted Falg
	 */
	private boolean idCardTypeSetted = false;
	
		/**
	 * Attribute idCardType is Null Falg
	 */
	private boolean idCardTypeNull = false;
	
	   
    /**
	 * Get idCardType
	 * 
	 * @return String
	 */
	final public String getIdCardType(){
	    
				
		if(isIdCardTypeNull()){
			return null;
		}
		else{
			return StringUtils.trim(idCardType);
		}
				
	}
	
	/**
	 * Set idCardType
	 * 
	 * @param String
	 */
	final public void setIdCardType(String idCardType ){
		
				
		this.idCardType = StringUtils.trim(idCardType);
				
		this.idCardTypeSetted = true;
		
				
				
		this.setIdCardTypeNull(this.idCardType == null);
				
				
	}
	
	/**
	 * Get idCardType Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isIdCardTypeSetted(){
		return this.idCardTypeSetted;
	}
	
		
	/**
	 * Set idCardType Null
	 * 
	 */
	final public void setIdCardTypeNull(){
			
		this.idCardTypeNull = true;
		
	}	
	
	final public void setIdCardTypeNull(boolean aNullFlag){
			
		this.idCardTypeNull = aNullFlag;
		
	}	
	
	final public boolean isIdCardTypeNull(){
			
		return this.idCardTypeNull;
		
	}
	
    	
	   
		
		
		
	private String idCardNum;	
	
	/**
	 * Attribute idCardNum Be Seted Falg
	 */
	private boolean idCardNumSetted = false;
	
		/**
	 * Attribute idCardNum is Null Falg
	 */
	private boolean idCardNumNull = false;
	
	   
    /**
	 * Get idCardNum
	 * 
	 * @return String
	 */
	final public String getIdCardNum(){
	    
				
		if(isIdCardNumNull()){
			return null;
		}
		else{
			return StringUtils.trim(idCardNum);
		}
				
	}
	
	/**
	 * Set idCardNum
	 * 
	 * @param String
	 */
	final public void setIdCardNum(String idCardNum ){
		
				
		this.idCardNum = StringUtils.trim(idCardNum);
				
		this.idCardNumSetted = true;
		
				
				
		this.setIdCardNumNull(this.idCardNum == null);
				
				
	}
	
	/**
	 * Get idCardNum Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isIdCardNumSetted(){
		return this.idCardNumSetted;
	}
	
		
	/**
	 * Set idCardNum Null
	 * 
	 */
	final public void setIdCardNumNull(){
			
		this.idCardNumNull = true;
		
	}	
	
	final public void setIdCardNumNull(boolean aNullFlag){
			
		this.idCardNumNull = aNullFlag;
		
	}	
	
	final public boolean isIdCardNumNull(){
			
		return this.idCardNumNull;
		
	}
	
    	
	   
		
		
		
	private long sysAccountId;	
	
	/**
	 * Attribute sysAccountId Be Seted Falg
	 */
	private boolean sysAccountIdSetted = false;
	
		/**
	 * Attribute sysAccountId is Null Falg
	 */
	private boolean sysAccountIdNull = false;
	
	   
    /**
	 * Get sysAccountId
	 * 
	 * @return long
	 */
	final public long getSysAccountId(){
	    
				
		return sysAccountId;
				
	}
	
	/**
	 * Set sysAccountId
	 * 
	 * @param long
	 */
	final public void setSysAccountId(long sysAccountId ){
		
				
		this.sysAccountId = sysAccountId;
				
		this.sysAccountIdSetted = true;
		
				
				
		this.setSysAccountIdNull(false);
				
				
	}
	
	/**
	 * Get sysAccountId Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isSysAccountIdSetted(){
		return this.sysAccountIdSetted;
	}
	
		
	/**
	 * Set sysAccountId Null
	 * 
	 */
	final public void setSysAccountIdNull(){
			
		this.sysAccountIdNull = true;
		
	}	
	
	final public void setSysAccountIdNull(boolean aNullFlag){
			
		this.sysAccountIdNull = aNullFlag;
		
	}	
	
	final public boolean isSysAccountIdNull(){
			
		return this.sysAccountIdNull;
		
	}
	
    	
	   
		
		
		
	private int deleteFlag;	
	
	/**
	 * Attribute deleteFlag Be Seted Falg
	 */
	private boolean deleteFlagSetted = false;
	
		/**
	 * Attribute deleteFlag is Null Falg
	 */
	private boolean deleteFlagNull = false;
	
	   
    /**
	 * Get deleteFlag
	 * 
	 * @return int
	 */
	final public int getDeleteFlag(){
	    
				
		return deleteFlag;
				
	}
	
	/**
	 * Set deleteFlag
	 * 
	 * @param int
	 */
	final public void setDeleteFlag(int deleteFlag ){
		
				
		this.deleteFlag = deleteFlag;
				
		this.deleteFlagSetted = true;
		
				
				
		this.setDeleteFlagNull(false);
				
				
	}
	
	/**
	 * Get deleteFlag Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isDeleteFlagSetted(){
		return this.deleteFlagSetted;
	}
	
		
	/**
	 * Set deleteFlag Null
	 * 
	 */
	final public void setDeleteFlagNull(){
			
		this.deleteFlagNull = true;
		
	}	
	
	final public void setDeleteFlagNull(boolean aNullFlag){
			
		this.deleteFlagNull = aNullFlag;
		
	}	
	
	final public boolean isDeleteFlagNull(){
			
		return this.deleteFlagNull;
		
	}
	
    	
	   
		
		
		
	private String status;	
	
	/**
	 * Attribute status Be Seted Falg
	 */
	private boolean statusSetted = false;
	
		/**
	 * Attribute status is Null Falg
	 */
	private boolean statusNull = false;
	
	   
    /**
	 * Get status
	 * 
	 * @return String
	 */
	final public String getStatus(){
	    
				
		if(isStatusNull()){
			return null;
		}
		else{
			return StringUtils.trim(status);
		}
				
	}
	
	/**
	 * Set status
	 * 
	 * @param String
	 */
	final public void setStatus(String status ){
		
				
		this.status = StringUtils.trim(status);
				
		this.statusSetted = true;
		
				
				
		this.setStatusNull(this.status == null);
				
				
	}
	
	/**
	 * Get status Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isStatusSetted(){
		return this.statusSetted;
	}
	
		
	/**
	 * Set status Null
	 * 
	 */
	final public void setStatusNull(){
			
		this.statusNull = true;
		
	}	
	
	final public void setStatusNull(boolean aNullFlag){
			
		this.statusNull = aNullFlag;
		
	}	
	
	final public boolean isStatusNull(){
			
		return this.statusNull;
		
	}
	
    	
	   
		
		
		
	private String remarks;	
	
	/**
	 * Attribute remarks Be Seted Falg
	 */
	private boolean remarksSetted = false;
	
		/**
	 * Attribute remarks is Null Falg
	 */
	private boolean remarksNull = false;
	
	   
    /**
	 * Get remarks
	 * 
	 * @return String
	 */
	final public String getRemarks(){
	    
				
		if(isRemarksNull()){
			return null;
		}
		else{
			return StringUtils.trim(remarks);
		}
				
	}
	
	/**
	 * Set remarks
	 * 
	 * @param String
	 */
	final public void setRemarks(String remarks ){
		
				
		this.remarks = StringUtils.trim(remarks);
				
		this.remarksSetted = true;
		
				
				
		this.setRemarksNull(this.remarks == null);
				
				
	}
	
	/**
	 * Get remarks Has Been Setted
	 * 
	 * @return boolean
	 */
	final public boolean isRemarksSetted(){
		return this.remarksSetted;
	}
	
		
	/**
	 * Set remarks Null
	 * 
	 */
	final public void setRemarksNull(){
			
		this.remarksNull = true;
		
	}	
	
	final public void setRemarksNull(boolean aNullFlag){
			
		this.remarksNull = aNullFlag;
		
	}	
	
	final public boolean isRemarksNull(){
			
		return this.remarksNull;
		
	}
	
    	
	   
		
		
		
		
	
	
	public int hashCode() {
		final int prime = 31;
		int result = 1;
				
				
		result = prime * result + (int) (getId() ^ (getId() >>> 32));
						
		return result;
	}
	
	public boolean equals(Object obj) {
	
		if (obj == null){
			return false;
		}
		if ((obj instanceof Teacher) == false){
			return false;
		}
		Teacher other = (Teacher) obj;
		
				
				
		if (getId() != other.getId()){
			return false;
		}
						
		return true;
	
	}	
	
	public String toString(){
	    
		StringBuffer buffer = new StringBuffer();
		
		buffer.append("[");
		
		        
		buffer.append("id=");
		buffer.append(this.id);
		        
		buffer.append("teacherName=");
		buffer.append(this.teacherName);
		        
		buffer.append("teacherGender=");
		buffer.append(this.teacherGender);
		        
		buffer.append("teacherBirthday=");
		buffer.append(this.teacherBirthday);
		        
		buffer.append("contactPhone=");
		buffer.append(this.contactPhone);
		        
		buffer.append("contactsRelation=");
		buffer.append(this.contactsRelation);
		        
		buffer.append("idCardType=");
		buffer.append(this.idCardType);
		        
		buffer.append("idCardNum=");
		buffer.append(this.idCardNum);
		        
		buffer.append("sysAccountId=");
		buffer.append(this.sysAccountId);
		        
		buffer.append("deleteFlag=");
		buffer.append(this.deleteFlag);
		        
		buffer.append("status=");
		buffer.append(this.status);
		        
		buffer.append("remarks=");
		buffer.append(this.remarks);
				
		buffer.append("]");
		
		return buffer.toString();
	}
	
	
}